home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_mac.hqx / SRGP port to 5.0 (compressed) / SRGP_SPHIGS Root / MacSPHIGS / mat3err.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-13  |  493 b   |  29 lines

  1. #include "sph_errtypes.h"
  2.  
  3. #ifdef THINK_C
  4. /* We hide this from gnu's compiler, which doesn't understand it. */
  5. /* JJR
  6. void SPH__error (int errtype, ...);
  7. */
  8. #endif
  9.  
  10.  
  11. #define ERR_ERROR(A,B,C)   \
  12.    if (1) {char cstr[256]; sprintf C; SPH__error(ERR_MAT3_PACKAGE, cstr); } else
  13.  
  14.  
  15. #define ERR_S  cstr,"%s\n"
  16. #define ERR_SI cstr,"%s: %d\n"
  17. #define ERR_SS cstr,"%s: %s\n"
  18.  
  19. #define ERR_SEVERE 0
  20. #define ERR_FATAL  0
  21.  
  22. #define ERR_ALLOC1 0
  23.  
  24. typedef int ERRid;
  25.  
  26. #define ERRregister_package(S)    100
  27.  
  28.  
  29.